package pattern.command;

/**
 * 测试了
 *
 * @author sun.ye
 * @since 2020-07-14 11:48
 */
public class Test {

    public static void main(String[] args) {

        Animal animal = new Animal();
        animal.setName("DOG");
        Person person = new Person();
        suicide(person);
    }

    private static void feelSoSad(SadCommand sad){
    }

    private static void suicide(SuicideCommand suicide){
        suicide.suicide();
    }
}